let Promise = require('./1.promise');
// 1个promise 实例可以then 多次 
let promise = new Promise(function (resolve,reject) {
  setTimeout(function () {
    reject(100);
  }, 1000);
});
promise.then(function (value) { // pengding 
  console.log('success',value);
},function (reason) { 
  console.log('reason',reason);
});
promise.then(function (value) { // pengding 
  console.log('success', value);
}, function (reason) {
  console.log('reason', reason);
});